package com.interview.javabasic.reflect;

public class LoadDifference {
    public static void main(String[] args) throws ClassNotFoundException {
        //判断ClassLoader与forName的区别
        ClassLoader cl = Robot.class.getClassLoader();
        //数据库连接时，类中有static代码块需要运行所以使用：
        //Class.forName("com.mysql.jdbc.Driver");
        Class r = Class.forName("com.interview.javabasic.reflect.Robot");
    }
}
